
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{commons/public::common-public}">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台管理</title>
    <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
    <script src="https://kit.fontawesome.com/b99e675b6e.js"></script>
</head>
<style>
.layui-input{
    width:90%;
    margin-top:10px;
}
</style>
<body>
 <form class="layui-form" th:action="@{/forum/toUpdateForum}" method="post">
     <input type="hidden" name="id" th:value="${forum.id}" >
     <div class="layui-form-item">
         <label class="layui-form-label">论坛标题</label>
         <div class="layui-input-block">
             <input type="text" name="title" th:field="${forum.title}" class="layui-input">
         </div>
     </div>
     <div class="layui-form-item">
         <label class="layui-form-label">内容</label>
         <div class="layui-input-block">
             <textarea type="textarea" name="content" th:field="${forum.content}" class="layui-textarea"></textarea>
         </div>
     </div>
     <div class="layui-form-item">
         <label class="layui-form-label">发布人</label>
         <div class="layui-input-block">
             <input readonly type="text" th:value="${forum.userName}" class="layui-input layui-input-view" style="border: none">
         </div>
     </div>
     <div class="layui-form-item">
         <label class="layui-form-label">创建时间</label>
         <div class="layui-input-block">
             <input readonly type="text" th:value="${forum.createTime}" class="layui-input layui-input-view" style="border: none">
         </div>
     </div>
     <div class="layui-form-item">
         <div class="layui-input-block">
             <button type="submit" class="layui-btn">立即提交</button>
             <button type="reset" class="layui-btn layui-btn-primary">重置</button>
         </div>
     </div>

 </form>
</body>

</html>